import requests
import re,get_page
from bs4 import BeautifulSoup
url='https://github.com/Jack-Cherish/python-spider'

def find_cn(url):
    #print('now find url :',url)
    res=get_page.get_page(url)
    soup=BeautifulSoup(res.text,'lxml')
    texxt=soup.find_all('div','Box-body')
    if(len(texxt)==1):
        tt=texxt[0].get_text()
        zhPattern = re.compile(u'[\u4e00-\u9fa5]+')
        match=zhPattern.search(tt)
        if(match):
            content=soup.find('div','repository-meta-content').get_text()
            content=str(content).replace(' ','').replace('\n','')
            return content
        else:
            return False
    else:
        #print(len(texxt))
        return False
